package edu.unmsm.fisi.taller2.session3.dao;

import java.util.HashMap;
import java.util.Map;



import com.sun.org.apache.bcel.internal.generic.NEW;

import edu.unmsm.fisi.taller2.session3.model.UserBean;

public class UserDao {
	private static Map<String, UserBean> dataMap = new HashMap<String, UserBean>();
	static{
		dataMap.put("rod", new UserBean("Rod", "Johnson", "rod.johnson@interface21.com"));
		dataMap.put("james", new UserBean("James", "Gosling", "jgosling@sun.com"));
		dataMap.put("larry", new UserBean("Larry", "Ellison", "lellison@oracle.com"));
	}
	
	public UserDao() {
		
	}
	
	public UserBean getUser(String userName) {
		return (UserBean)dataMap.get(userName);
	}
}
